home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
telecomm
/
wa200.lzh
/
WHATARC.DOC
< prev
next >
Wrap
Text File
|
1990-10-29
|
10KB
|
240 lines
========================================================================
==== ====
== WhatArc v2.00 ==
== an ARCmail utility written by Jon Webb, DeltaVision Systems ==
== with a little help from Theo Runia ==
==== ====
========================================================================
NOTES FOR 1.0x USERS
====================
This version of WhatArc has quite a few changes. Your old
configuration file will need changing. This version of
WhatArc should work fine on a TT.
INTRODUCTION
============
WhatArc was created to enable the use of ARCmail, ZIPmail
and LZHmail simultaneously on a The-Box or Binkley/ST
system. The utilities which usually call ARC.TTP to create
ARCmail, should call WHATARC.TTP with the same parameters.
Here's what WhatArc does...
» IMPORTING an archived mail packet:
»» Read configuration
»» Find archived mail packet
»» Examine archive header
»» Call archive program
» EXPORTING an archived mail packet:
»» Read configuration
»» Find un-archived mail packet
»» Examine packet header
»» Match node number with configuration file
»» Call archive program
Import is easy, it just looks at the first few bytes of the
incoming archive, and calls one of three de-archiving
programs. Export is a little more complex. The
configuration file contains some node numbers and their
packing methods. Depending on the node number in the packet
header, and the node numbers in the configuration file,
either ARC, ZIP or LHArc is called.
THE CONFIGURATION FILE
======================
WhatArc gets its configuration from a file called
WHATARC.CTL, which must be located in either the home
directory, or the directory to which the environment
variables MAILER or BINKLEY point.
Due to a bug in Import the environment variables aren't
passed to WhatArc. In that case WhatArc will attempt to use
the environment passed to Import.
WHATARC.CTL is a plain ascii file which contains a few
lines of text. These lines can contain keywords. Comments
should be preceded by a semi-column (;). Valid keywords are:
» LOG <filespec>
This should be the first keyword in the file. It
defines what log file you want WhatArc to use. If
omitted, a file called WHATARC.LOG in the current
directory will be used. Logging will not work if you
specify the The-Box log file, because Import and Export
keep the log file open when running the archiver.
Example:
LOG d:\tb\whatarc.log
» SCREEN <kb>
When this keyword is found, the screen will be saved
on startup and restored on exit. The <kb> parameter
defines how many Kb are required for the archivers. If
there is not enough RAM, the screen just isn't saved.
Example:
SCREEN 128
» ARC_X <program> <mask>
» ZIP_X <program> <mask>
» LZH_X <program> <mask>
These keywords define the location of the ARC, ZIP and
LZH extractor programs. The <program> parameter should
be the path and name of the extractor. The <mask>
parameter defines the command line which will be passed
to the extractor. It can contain the following
placeholders:
»» %1 is replaced by the path of the archived file,
»» %2 is replaced by the name of the archived file,
»» %3 is replaced by the path of the packet,
»» %4 is replaced by the name of the packet.
The paths _do_not_ include a trailing backslash.
Examples:
ARC_X d:\tb\arc\arc.ttp xo %1\%2 %3\%4
ZIP_X d:\tb\arc\unzip.ttp x %1\%2 %3\
» ARC_A <program> <mask>
» ZIP_A <program> <mask>
» LZH_A <program> <mask>
These keywords define the ARC, ZIP and LZH creator
programs. The <program> and <mask> parameter are as
described above.
IMPORTANT: When using Export you should use a command
line to MOVE the files into the archive, not just add
them.
Examples:
ARC_A d:\tb\arc\arc.ttp m %1\%2 %3\%4
LZH_A d:\tb\arc\lharc.ttp mu %1\%2 %3\%4
» DEFAULT <type>
With this keyword you choose what type of archived mail
is sent to nodes which aren't defined in the
configuration file. Type can be:
»» ARCmail
»» LZHmail
»» ZIPmail
Example:
DEFAULT ARCmail
» SEND <node> <type>
is used to define what type of archived mail should go
to a certain node. The node number should either in
format Zone:Net/Node or just Net/Node. The <type>
parameter is as described above. Example: I want to
send ZIPmail to 2:282/350, but LZHmail to 2:282/301.
All the other nodes should get ARCmail. The
configuration file would contain:
DEFAULT ARCmail
SEND 2:282/301 LZHmail
SEND 2:282/350 ZIPmail
Points should use the real address of their boss. If
you are a boss yourself, use the fake address of your
points.
Please note that you should _never_ send archived mail
to a system without _first_ asking the sysop of that
system whether he is capable of accepting archived mail
and - if so - what sort of archiver should be used.
An example configuration file is included in the archive.
USE WITH EXPORT.TTP/IMPORT.TTP
==============================
The easiest way to get Export and Import to use WhatArc
instead of ARC is to put ARC in a different directory and
rename WHATARC.TTP to ARC.TTP. However, Export and Import
can be told to use a different archiver in the command
line...
Export normal: EXPORT -a \TB\WHATARC.TTP m
Export crash: EXPORT -fa<node> -a \TB\WHATARC.TTP m
Export points: EXPORT -ma<boss> -a \TB\WHATARC.TTP m
Import: IMPORT -a \TB\WHATARC.TTP x
Have a look at the import/export docs for more information.
You could write a simple batchfile to handle the parameters.
You MUST put the -a option LAST on the command line,
because all options after the -a are considered part of
that command line for the archiver. Don't forget the
parameters can only be 'A' for Add, 'M' for Move or 'X' for
Extract. Add and Move are treated the same way by WhatArc.
A NOTE ON ARCHIVERS
===================
There are many different versions of archivers going around.
You should pick one which doesn't require user input,
checks CRC's and returns correct errorlevels. I myself use
TCARC v1.10 and LHarc-ST v0.60. You may want to try ARC 6.02
or LHarc v1.13.
I have not yet seen a ZIP creator for the ST. I only built
the ZIP creation option in just in case one becomes